package com.wxc.wxcwzq.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.wxc.wxcwzq.web.entity.SysUser;
import com.wxc.wxcwzq.web.service.SysUserService;

@Controller
@RequestMapping("/user/sysUser/")
public class SYSUserController {

	@Autowired(required=true)
	private SysUserService userservice;
	
	@RequestMapping("/getUser2")
	@ResponseBody
	public String getUserInfo(Long id){
		SysUser user = userservice.selectByPrimaryKey(id);
		System.out.println("==============="+JSON.toJSONString(user));
		return "---------"+JSON.toJSONString(user);
	}
}
